05283c7f6dae821570e006e722614eb44a984547,plugins/cloud/aws/src/main/java/org/elasticsearch/cloud/aws/AwsEc2Service.java,AwsEc2Service,client,#,47

Before Change


            } else {
                throw new ElasticSearchIllegalArgumentException("No automatic endpoint could be derived from region [" + region + "]");
            }
            client.setEndpoint(endpoint);
        }

        return this.client;

After Change


                throw new ElasticSearchIllegalArgumentException("No automatic endpoint could be derived from region [" + region + "]");
            }
            if (endpoint != null) {
                client.setEndpoint(endpoint);
            }
        }